home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.dcom.modems
- Path: news.uunet.ca!gts!bokonon!stephen
- From: stephen@bokonon.ussinc.com (Stephen M. Dunn)
- Subject: Re: How come Z-Modem is faster than X-Modem?
- Organization: United System Solutions Inc.
- Date: Tue, 26 Mar 1996 03:36:32 GMT
- Message-ID: <DouvCw.ME@bokonon.ussinc.com>
- References: <4inro0$9mj@alcor.usc.edu> <1996Mar21.110405.6710@ms.philips.nl>
-
- In article <1996Mar21.110405.6710@ms.philips.nl> Pvestjen@ms.philips.nl (Patrick Vestjens) writes:
- $Abu Wawda (wawda@alcor.usc.edu) wrote:
- $: I have the specs for the X-modem protocol and I see that it doesn't
- $: add much overhead, just 4 bytes per 128 byte packet. So how come
- $: Z-modem is so much faster? (Unfortunately, I haven't found the specs
- $: for Z-Modem yet.) Does it do compression? Thanks,
- $
- $As far as I know Zmodem is a streaming protocol while Xmodem is not.
-
- Correct.
-
- $This means that when using Xmodem the sender requires an acknowledgement
- $from the receiver after each block. In the mean time it just waits and
- $that costs a lot of time.
-
- This is particularly true in the case of a high-latency connection,
- such as when an error correction protocol is in use. LAP-M and MNP
- both cut up the data flow into packets, and until the receiving modem
- has received and verified an entire packet, it doesn't start sending
- that data to the computer. The computer, in turn, can't verify
- the contents of the Xmodem packet until it's all been received,
- and so there are additional delays present.
-
- $Zmodem does not require an acknowledgement after each block. I think it
- $only sends one if an exception occurred. See the sender just keeps on
- $sending and sending and sending ...
-
- It can run in streaming mode or in sliding window mode, in which
- there's an outstanding window of some size and an ack must be sent
- at some point during reception of each window size. Assuming that
- the window size is high enough that the acks get back in time,
- the sliding window mode will effectively stream anyway.
- --
- stephen@bokonon.ussinc.com ...!{xrtll,gts.org}!bokonon!stephen
- ----------------------------------------------------------------------------
- Stephen M. Dunn, CNE, ACE, Sr. Systems Analyst, United System Solutions Inc.
- 104 Carnforth Road, Toronto, ON, Canada M4A 2K7 (416) 750-7946 x251
-